@layout("admin::layout_admin")

@section("admin_content")
@if(count($errors->all()) != 0)
	<div class="alert alert-error">
		<ul>
		@foreach($errors->all() as $m) 
			<li>{{ $m }} </li>
		@endforeach
		</ul>
	</div>
@endif

{{ Form::open_for_files($form_action, "POST") }}
{{ Bootstrap::tabbable_start() }}

	{{ Bootstrap::tabbable_navtabs_start("category_form")}}
		{{ Bootstrap::tabbable_tab("TÜRKÇE", "turkish", "active") }}
		{{ Bootstrap::tabbable_tab("ENGLISH", "english") }}
		{{ Bootstrap::tabbable_tab("ÜST KATEGORİ", "parentcategory") }}		
		{{ Bootstrap::tabbable_tab("RESIM GALERİSİ", "pictures") }}
		{{ Bootstrap::tabbable_tab("VİDEOLAR", "videos") }}		
	{{ Bootstrap::tabbable_navtabs_end() }}

	{{ Bootstrap::tabbable_content_start() }}
		{{ Bootstrap::tabbable_pane_start("turkish", "active") }}

			{{ Bootstrap::accordion_start("turkish_content")}}
				{{ Bootstrap::accordion_group_start("turkish_content", "1. STANDART BİLGİLER", "collapse1", "in") }}
					{{ Bootstrap::form_text("tr_title", "Kategori Adı [TR]", Input::old("tr_title", $defaults['tr_title'])) }}
					{{ Bootstrap::form_textarea("tr_body", "Kategori Açıklaması [TR]", Input::old("tr_body", $defaults['tr_body']))}}
					{{ Bootstrap::form_text("tr_clean_url", "URL Yolu [TR]", Input::old("tr_clean_url", $defaults['tr_clean_url'])) }}
				{{ Bootstrap::accordion_group_end() }}

				{{ Bootstrap::accordion_group_start("turkish_content", "2. SEO ÖZELLİKLERİ", "collapse2") }}
					{{ Bootstrap::form_text("tr_focused", "Anahtar Kelime [TR]", Input::old("tr_focused", $defaults['tr_focused'])) }}
			
					{{ Bootstrap::form_text("tr_page_title", "Sayfa Başlığı [TR]", Input::old("tr_page_title", $defaults['tr_page_title']),"", 70) }}
					{{ Bootstrap::form_textarea("tr_description", "Sayfa Açıklaması [TR]", Input::old("tr_description", $defaults['tr_description']),"", 156) }}
					
					<div id="tr_preview" class="well">
						GOOGLE ÖNİZLEME [TR] :<br>
						<a class="preview_title" href="#" style="text-decoration:underline; ">Sayfa Başlığı</a><br>
						<a href="#" class="preview_link" style="font-size: 13px; color: #282; line-height: 15px;" class="url">
							www.trors.com/category/<span class="preview_url">url</span>
						</a>
						<p class="desc" style="font-size: 13px; color: #000; line-height: 15px;">
							<span class="preview_description" style="color: rgb(0, 0, 0);">AÇIKLAMA
							</span>
						</p>
					</div>
				{{ Bootstrap::accordion_group_end() }}	

				{{ Bootstrap::accordion_group_start("turkish_content", "3. RESİMLER", "collapse_tr_pictures") }}	

				{{ Bootstrap::accordion_group_end() }}					
			{{ Bootstrap::accordion_end() }}

		{{ Bootstrap::tabbable_pane_end() }}

		{{ Bootstrap::tabbable_pane_start("english") }}	

			{{ Bootstrap::accordion_start("english_content")}}
				{{ Bootstrap::accordion_group_start("english_content", "1. STANDART BİLGİLER", "collapse3", "in") }}
					{{ Bootstrap::form_text("en_title", "Kategori Adı [EN]", Input::old("en_title", $defaults['en_title'])) }}
					{{ Bootstrap::form_textarea("en_body", "Kategori Açıklaması [EN]", Input::old("en_body", $defaults['en_body']))}}
					{{ Bootstrap::form_text("en_clean_url", "URL Yolu [EN]", Input::old("en_clean_url", $defaults['en_clean_url'])) }}					
				{{ Bootstrap::accordion_group_end() }}

				{{ Bootstrap::accordion_group_start("english_content", "2. SEO ÖZELLİKLERİ", "collapse4") }}
					{{ Bootstrap::form_text("en_focused", "Anahtar Kelime [EN]", Input::old("tr_focused", $defaults['en_focused'])) }}
			
					{{ Bootstrap::form_text("en_page_title", "Sayfa Başlığı [EN]", Input::old("tr_page_title", $defaults['en_page_title']),"", 70) }}
					{{ Bootstrap::form_textarea("en_description", "Sayfa Açıklaması [EN]", Input::old("tr_description", $defaults['en_description']),"",156) }}

					<div id="en_preview" class="well">
						GOOGLE ÖNİZLEME [EN] :<br>
						<a class="preview_title" href="#" style="text-decoration:underline; ">Sayfa Başlığı</a><br>
						<a href="#" class="preview_link" style="font-size: 13px; color: #282; line-height: 15px;" class="url">
							www.trors.com/category/<span class="preview_url">url</span>
						</a>
						<p class="desc" style="font-size: 13px; color: #000; line-height: 15px;">
							<span class="preview_description" style="color: rgb(0, 0, 0);">AÇIKLAMA
							</span>
						</p>
					</div>

				{{ Bootstrap::accordion_group_end() }}	

				{{ Bootstrap::accordion_group_start("english_content", "3. RESİMLER", "collapse_en_pictures") }}	

				{{ Bootstrap::accordion_group_end() }}								
			{{ Bootstrap::accordion_end() }}	

		{{ Bootstrap::tabbable_pane_end() }}

		{{ Bootstrap::tabbable_pane_start("parentcategory") }}
			@include("admin::category_form_parent_field")
		{{ Bootstrap::tabbable_pane_end() }}			

		{{ Bootstrap::tabbable_pane_start("pictures") }}
			@include("admin::gallery_fields")
			@todo add media model<br>
			@todo multiple file upload<br>
			@todo create video from squence images
		{{ Bootstrap::tabbable_pane_end() }}		

		{{ Bootstrap::tabbable_pane_start("videos") }}	
			@todo multiple file upload
		{{ Bootstrap::tabbable_pane_end() }}

	{{ Bootstrap::tabbable_content_end() }}
 <button type="submit" class="btn btn-primary form-submit-btn" style="margin-top:10px;">KAYDET</button>
{{ Bootstrap::tabbable_end() }}
{{ Form::hidden("id", Input::old("id", $defaults['id'])) }}

{{ Form::close() }}

@endsection
